home *** CD-ROM | disk | FTP | other *** search
- Path: andrew.cmu.edu!wnolan+
- From: William Nolan <wnolan+@andrew.cmu.edu>
- Newsgroups: comp.sys.cbm
- Subject: Programming [RASTERS] question...
- Date: Fri, 12 Jan 1996 14:03:59 -0500
- Organization: Sophomore, Computer Science, Carnegie Mellon, Pittsburgh, PA
- Message-ID: <Ikxf2T200YUtAGNFEu@andrew.cmu.edu>
- NNTP-Posting-Host: po2.andrew.cmu.edu
-
- Okay even though I don't see too many posts about this sort of stuff,
- I'll try anyway ... I'm sure some veteran demo coders read this stuff
- :).
-
- I'm still trying to learn demo coding stuff, and I am working on a
- text scroller. A real simple one, just one line at the bottom of the
- screen that goes from right edge to left edge. I'm using raster
- interrupts to do it, and everything *seems* okay... one one interrupt
- (at line 0) I reset the horiz scroll reg to 0. Then at about line 5,
- I decrement the value for the horiz scroll (NOT the actual reg
- itself), check if it's <0, if so, reset to 7 and shift the video
- memory at the bottom line one character left. Then, on line 241, I
- set the horiz scroll pos reg to the value calculated before. So
- what's the problem, you ask? Well ... everything works, except I am
- getting massive flickering every 8 scroll steps. I'm not totally
- clear on how the raster works, so maybe I am coarse scrolling too
- soon? Also, I set the screen to 38 column mode, but it keeps getting
- out of it. But the weird thing is, every fourth or fifth time I
- change something and assemble it, it works beautifully. I am using
- Turbo Assembler on the PC64 emulator by the way. OH yeah I have two
- sprites at the bottom of the screen as well, but these shouldn't cause
- a problem right? The other weird thing is if I compile the source to
- object code, and then load and run that from C= Basic, it scrolls, but
- switches between multi-color mode and hi-res mode every 2 scroll
- steps. Something weird is going on!!! What am I doing wrong?
-
- _ _ _ _ _ _ _ _ _ _
- [@@@| |@@@] [@@@] [@@@] [@@@]
- [~~~|/\|~~~] [~~~] [~~~]_ [~~~]_ William Nolan -- wn22@andrew.cmu.edu
- [!!!!!!!!!!] [!!!] [!!!!!] [!!!!!]
- \ _ /\ _ / [_ _] [_ _ _] [_ _ _]
-